import { $hotel_get,$hotel_post } from "../utils/request.ts";

//返回订单列表
export const $orderList = async ()=>{
    let ret =await $hotel_get('userBook/showUserBook')
    return ret.t
}

export const $handleUseOrder = async(params:object)=>{
    let ret = await $hotel_post('userBook/completed',params)
    return ret
}

export const $handleSettleOrder = async(params:object) =>{
    let ret = await $hotel_post('userBook/evaluated',params)
    return ret
}